home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKitArchive.mbox / mbox / 000102_@mail.uunet.ca…man@Trimark.com_Tue Feb 1 11:49 MST 1994.msg < prev    next >
Internet Message Format  |  1994-10-30  |  3KB

  1. Received: from yvax.byu.edu by maine.et.byu.edu; Tue, 1 Feb 1994 11:49:53 -0700
  2. Return-Path: <@mail.uunet.ca,@trimark:shayman@Trimark.com>
  3. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
  4.  id <01H8DBN9NQG094DNQC@yvax.byu.edu>; Tue, 1 Feb 1994 11:34:43 MST
  5. Received: from alaska.et.byu.edu by yvax.byu.edu (PMDF V4.3-3 #4169)
  6.  id <01H8DBFPGU3K02I0B7@yvax.byu.edu>; Tue, 1 Feb 1994 11:27:48 MST
  7. Received: from yvax2.byu.edu by alaska.et.byu.edu; Tue,
  8.  1 Feb 1994 11:25:29 -0700
  9. Received: from DIRECTORY-DAEMON by yvax.byu.edu (PMDF V4.3-3 #4169)
  10.  id <01H8DAQ3OH8G019R39@yvax.byu.edu>; Tue, 1 Feb 1994 11:09:51 MST
  11. Received: from mail.uunet.ca (uunet.ca) by yvax.byu.edu (PMDF V4.3-3 #4169)
  12.  id <01H8DAMRC5OW019A2Q@yvax.byu.edu>; Tue, 1 Feb 1994 11:04:27 MST
  13. Received: from trimark by mail.uunet.ca with UUCP id <53657(6)>; Tue,
  14.  1 Feb 1994 13:03:48 -0500
  15. Received: from net_6_06 by Trimark.com (NX5.67c/NeXT-2.0-SAH) id AA10184; Tue,
  16.  1 Feb 94 12:43:55 -0500
  17. Received: by net_6_06 (NX5.67d/NX3.0X) id AA00498; Tue, 1 Feb 94 12:43:54 -0500
  18. Received: by NeXT.Mailer (1.95)
  19. Received: by NeXT Mailer (1.95)
  20. Date: Tue, 01 Feb 1994 12:43:54 -0500
  21. From: shayman@Trimark.com (Steve Hayman)
  22. Subject: how about a misckit MiscDocument object?
  23. To: misckit@byu.edu
  24. Message-Id: <9402011743-AA10184@Trimark.com>
  25. Content-Transfer-Encoding: 7BIT
  26. Status: RO
  27.  
  28. I wonder if anyone has given any thoughts to writing some sort of
  29. MiscDocument object to facilitate the writing of multi-window
  30. multi-document applications.  Something that would take care of
  31. the typical Document menu and provide functionality for New, Save,
  32. Save As, Open, Revert to Saved, etc etc.
  33.  
  34. I'm just thinking out loud here.  You probably really want two
  35. objects; one in the main nib file - let's say MiscController - that
  36. takes care of loading new nibs every time you do Document > New
  37. (and shifting the new window over a bit, etc etc) and perhaps a
  38. MiscDocument object inside each nib that takes care of saving the
  39. window's contents in a file or initializing it from a file.
  40.  
  41. Perhaps you appoint a delegate object that manages the actual saving
  42. and loading of files - maybe it only needs to understand two messages,
  43. - saveIn:(const char *)filename
  44. - loadFrom:(const char *)filename
  45.  
  46. and MiscDocument sends its delegate the appropriate saveIn: or loadFrom:
  47. message, and keeps track of the file name, sets the window title, etc etc.
  48. Maybe a MiscDocument without a delegate just saves a window and its
  49. contents as a typed stream file with a specified extension.
  50.  
  51. My goal would be to have a couple of palettized objects that would
  52. let me write the typical developer class exercise of a multi-window
  53. text editor with no extra code at all.
  54.  
  55. I'd be interested in hearing anyone's thoughts on this, potential
  56. pitfalls, objects that already exist that do this, etc etc.   In
  57. the MiscKit Authors.rtf file, Don says he's working on a
  58. MiscInfoController.  That would blend in very nicely with something
  59. like a MiscDocumentController.
  60.  
  61. Regards,
  62. Steve
  63.  
  64. P.S. Thank you Don for the latest release of the kit!  MiscString
  65. in particular is saving me a lot of time.
  66.  
  67. ---
  68. Steve Hayman
  69. Steve Hayman + Associates      NeXTSTEP Consulting         Toronto, Ontario
  70. shayman@Objectario.com                                       (416) 769-8995